package main

import "fmt"

type data struct {
	name string
}

func (p *data) print() {
	fmt.Println("name:", p.name)
}

type printer interface {
	print()
}

func main() {
	d1 := data{"one"}
	d1.print()

	var in data
	in = data{"two"}
	in.print()

	a := 5
	b := 2
	t := a%b
	fmt.Println(t)


	var m map[string]int
	if v, ok := m["hello"]; ok {
		fmt.Println(v)
	} else {
		fmt.Println("m is nil or m doesn't have key 'hello'")
	}
}
